package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.GuihuanSL;

public interface GuihuanSLRepository extends JpaRepository<GuihuanSL, Long> {

    GuihuanSL findByTaskId(String taskId);

    GuihuanSL findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<GuihuanSL> findByWorkOrderNum(String workOrderNum);

    GuihuanSL findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
